﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using MKAdminCore.DTO.Web.Common;
using MKAdminCore.DTO.Web.Login;
using MKAdminCore.ToolKit;

namespace MKAdminCore.ServiceImpl.Web.Common
{
    public class CurrentUserService
    {
        public static Result<GetSubAccountParameter> ConvertToSubAccountParameter(UserInfo userInfo,
            EmAccountStatusCode accountStatusCode)
        {
            var result = new Result<GetSubAccountParameter>()
            {
                data = new GetSubAccountParameter()
            };

            result.data.AgentId = userInfo.OperatorId;
            result.data.AccountStatusCode = accountStatusCode;

            return result;
        }
    }
}
